#-------------------------------------------------
#
# Project created by QtCreator 2022-04-18T16:17:34
#
#-------------------------------------------------

QT       += core network
QT       -= gui

#greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = AutoUpdate
#TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS QUAZIP_STATIC

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

CONFIG += c++11 console
CONFIG -= app_bundle

SOURCES += \
        autoupdatefile.cpp \
        main.cpp \
        quazip/JlCompress.cpp \
        quazip/qioapi.cpp \
        quazip/quaadler32.cpp \
        quazip/quachecksum32.cpp \
        quazip/quacrc32.cpp \
        quazip/quagzipfile.cpp \
        quazip/quaziodevice.cpp \
        quazip/quazip.cpp \
        quazip/quazipdir.cpp \
        quazip/quazipfile.cpp \
        quazip/quazipfileinfo.cpp \
        quazip/quazipnewinfo.cpp \
        quazip/unzip.c \
        quazip/zip.c

HEADERS += \
        autoupdatefile.h \
        quazip/JlCompress.h \
        quazip/ioapi.h \
        quazip/minizip_crypt.h \
        quazip/quaadler32.h \
        quazip/quachecksum32.h \
        quazip/quacrc32.h \
        quazip/quagzipfile.h \
        quazip/quaziodevice.h \
        quazip/quazip.h \
        quazip/quazip_global.h \
        quazip/quazip_qt_compat.h \
        quazip/quazipdir.h \
        quazip/quazipfile.h \
        quazip/quazipfileinfo.h \
        quazip/quazipnewinfo.h \
        quazip/unzip.h \
        quazip/zip.h

FORMS +=

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target


DISTFILES += \
    quazip/QuaZipConfig.cmake.in \
    quazip/quazip.pc.cmakein


unix|win32: LIBS += -L$$PWD/zlib/ -lz

INCLUDEPATH += $$PWD/zlib
DEPENDPATH += $$PWD/zlib
